<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;

class CreateBindwallet extends Migration
{
    public function up()
    {
        Schema::create('bindwallet', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->integer('user_id')->nullable()->comment('用户id');
            $table->integer('blog_id')->nullable()->comment('钱包id');
            $table->decimal('price', 11)->nullable()->comment('余额');
            $table->text('content')->nullable()->comment('内容');
        });
    }
    public function down()
    {
        // 数据库回滚是比较危险的操作，推荐使用人工代替
    }
}